package com.fs.controller;


import org.apache.shiro.authc.AuthenticationException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UnAuthController {
    @RequestMapping(path = "/401")
    public void unauthorized() {
        throw new AuthenticationException();
    }
}
